package node;

import java.io.Serializable;

public class ServerDescriptor implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private int port;
	private String codice;
	
	public ServerDescriptor(String codice, int port)
	{
		this.codice= codice;
		this.port = port;
	}
   
  public String getCodice() {
		return codice;
	}

	public void setCodice(String codice) {
		this.codice = codice;
	}
	
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String toString()
	{
		String returnedString = 
				"\n\tCODICE:\t" + this.codice 	+ 
				"\tPORT:\t" + Integer.toString(this.port);
		
		return returnedString;
	}
}
